package crazy.collection;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.TreeSet;
import java.util.Vector;

enum Gender
{
	MALE, FEMALE;
}

public class IteratorTest
{
	public static void main(String[] args)
	{
		HashSet<String> hashSet = new HashSet<String>();
		System.out.println("1-->"+hashSet.iterator());
		
		LinkedHashSet<String> linkedHashSet = new LinkedHashSet<String>();
		System.out.println("2-->"+linkedHashSet.iterator());
		
		TreeSet<String> treeSet = new TreeSet<String>();
		System.out.println("3-->"+treeSet.iterator());
		
		EnumSet<Gender> enumSet = EnumSet.allOf(Gender.class);
		System.out.println("4-->"+enumSet.iterator());
		
		ArrayList<String> arrayList = new ArrayList<String>();
		System.out.println("5-->"+arrayList.iterator());
		
		Vector<String> vector = new Vector<String>();
		System.out.println("6-->"+vector.iterator());
		
		LinkedList<String> linkedList = new LinkedList<String>();
		System.out.println("7-->"+linkedList.iterator());
		
		ArrayDeque<String> arrayDeque = new ArrayDeque<String>();
		System.out.println("8-->"+arrayDeque.iterator());
	}
}
